//
//  DelegateFunc.m
//  UIComprehensive
//
//  Created by lanou3g on 16/1/27.
//  Copyright © 2016年 徐强. All rights reserved.
//

#import "DelegateFunc.h"

@implementation DelegateFunc

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    
    if ([self.delegate respondsToSelector:@selector(changeColor:)]) {
        //判断代理是否响应这个方法
        [self.delegate changeColor:self];
    }
    
    
}



@end
